#ifndef LOGIC_THREAD_H
#define LOGIC_THREAD_H

#include "game_thread.h"
typedef int (*logic_msg_callback)(void *data);
pthread_t create_logic_thread(logic_msg_callback callback);

void *thread_logic(void *p);
int init_thread_logic_param(logic_msg_callback callback);

int send_to_logic(void *data, int len);
int wakeup_logic_thread(int force);
//int send_msg(void *data, int len, char *topic, int partid);


#endif /* LOGIC_THREAD_H */
